package com.wshl.aijiuunion.view.adapter;

import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;

import com.wshl.aijiuunion.NetUrl;
import com.wshl.aijiuunion.R;
import com.wshl.aijiuunion.view.bean.ShopFenleiBeans;
import com.wshl.aijiuunion.utils.GlideUtils;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

/**
 * Created buy 风凊扬 on 2019/10/25 0025
 */
public class ShopFenLeiAdapter extends BGARecyclerViewAdapter<ShopFenleiBeans> {
    public ShopFenLeiAdapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_shopfenlei);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, ShopFenleiBeans model) {

        helper.setText(R.id.tv_shop_fenlei, model.getCat_name());
        ImageView imageView = helper.getImageView(R.id.img_shop_fenlei);
        GlideUtils.loadImage(mContext, NetUrl.IMG + model.getCover(), imageView);
    }
}
